

Pod::Spec.new do |s|
  s.name             = "HHToastKit"
  s.version          = "1.0.0"
  s.summary          = "iOS toast 组件，对 MBProgressHUD 封装"
  s.description      = <<-DESC.gsub(/^\s*\|?/,'')
                       An optional longer description of Huihui Health

                       | * Markdown format.
                       | * Don't worry about the indent, we strip it!
                       DESC
  s.homepage         = "https://gitlab.leke.cn/health-huihui/app/ios/ios-component/HHToastKit.git"
  # s.screenshots     = "www.example.com/screenshots_1", "www.example.com/screenshots_2"
  s.license          = 'BSD'
  s.author           = { "chasel" => "chenchun1@cnstrong.cn" }
  s.source           = { :git => "git@gitlab.leke.cn:health-huihui/app/ios/ios-component/HHToastKit.git", :branch => "master" }
  s.platform     = :ios, '8.0'
  s.requires_arc = true
  s.default_subspec = 'Core'

  #MBProgressHUD模块
  s.subspec 'MBProgressHUD' do |hud|
      hud.public_header_files = 'HUD/MBProgress/*.h'
      hud.source_files = 'HUD/MBProgress/*.{h,m}'
  end

  #核心提示模块
  s.subspec 'Core' do |core|
    core.public_header_files = 'Core/HHToastKit.h', 'Core/HHToastManager.h'
    core.source_files = 'Core/**/*.{h,m}'
    core.dependency 'HHToastKit/MBProgressHUD'
    core.resource = 'Core/Assets/HHToastKit.bundle'
  end

  #GIF模块
  s.subspec 'GIF' do |gif|
    gif.public_header_files = 'GIF/ZHGIFToastManager.h'
    gif.source_files = 'GIF/*.{h,m}'
    gif.dependency 'HHToastKit/Core'
    gif.dependency 'BCFoundation'
  end



end
